'use strict'

define(['jquery', 'bootstrap', 'select2', 'validate', 'validate.en', 'koala-search', 'shiftform', 'modalSearch',
        'datetimepicker', 'datetimepickerCN'], function($, validate) {
  
  return {
    
    init: function() {
      this.initPage();
    },
    
    initPage: function(){
    	
      $(document).find('form').bt_validate();
      
      $('select[name="organizationId"]').select2({
        theme: "classic",
        placeholder : '请选择',
        minimumResultsForSearch : -1,
        allowClear : true,
      });
      
      $('.year-month').datetimepicker({
        format: 'yyyymm',
        autoclose: true,
        language: 'zh-CN',
        startView: 4,
        minView: 3,
        startDate: '2010-01',
        pickerPosition: 'bottom-right'
      });
      
    }
    
  }
})